package com.qf.smsplatform.config;

import com.qf.smsplatform.common.constants.RabbitMQConstants;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMQConfig {


    @Bean
    public Queue sendLogQueue(){
        return QueueBuilder.durable(RabbitMQConstants.TOPIC_SMS_SEND_LOG).build();
    }
    @Bean
    public Queue pushReportQueue(){
        return QueueBuilder.durable(RabbitMQConstants.TOPIC_PUSH_SMS_REPORT).build();
    }

}
